/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

.cr-dialog-container {
  -webkit-box-align: center;
  -webkit-box-pack: center;
  -webkit-transition: opacity 250ms linear;
  -webkit-user-select: none;
  display: -webkit-box;
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.cr-dialog-frame {
  -webkit-box-orient: vertical;
  -webkit-box-shadow: 5px 5px 5px rgba(100, 100, 100, 0.5);
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2),
              0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: default;
  display: -webkit-box;
  padding: 14px 17px;
  position: relative;
  width: 460px;
}

.cr-dialog-frame:focus {
  outline: none;
}

@-webkit-keyframes pulse {
 0% {
   -webkit-transform: scale(1);
 }
 40% {
   -webkit-transform: scale(1.02);
  }
 60% {
   -webkit-transform: scale(1.02);
  }
 100% {
   -webkit-transform: scale(1);
 }
}

.cr-dialog-frame.pulse {
  -webkit-animation-duration: 180ms;
  -webkit-animation-iteration-count: 1;
  -webkit-animation-name: pulse;
  -webkit-animation-timing-function: ease-in-out;
}

.shown > .cr-dialog-frame {
  -webkit-transform: perspective(500px) scale(1)
                     translateY(0) rotateX(0);
  opacity: 1;
}

.cr-dialog-frame {
  -webkit-transform: perspective(500px) scale(0.99)
                     translateY(-20px) rotateX(5deg);
  -webkit-transition: all 180ms;
  -webkit-transition-duration: 250ms;
  opacity: 0;
}

.cr-dialog-shield {
  -webkit-transition: opacity 500ms;
  background-color: white;
  bottom: 0;
  display: block;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

.shown > .cr-dialog-shield {
  -webkit-transition: opacity 500ms;
  opacity: 0.75;
}

[hidden] {
  display: none;
}

.cr-dialog-title {
  -webkit-margin-end: 20px;
  display: block;
  font-size: 120%;
  font-weight: bold;
  margin-bottom: 10px;
  white-space: nowrap;
  word-wrap: normal;
}

.cr-dialog-text {
  margin: 13px 0;
}

.cr-dialog-text,
.cr-dialog-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cr-dialog-frame input {
  -webkit-box-sizing: border-box;
  width: 100%;
}

.cr-dialog-buttons {
  -webkit-box-orient: horizontal;
  -webkit-box-pack: end;
  display: -webkit-box;
  padding-top: 10px;
}

.cr-dialog-close {
  background: url(chrome://theme/IDR_CLOSE_DIALOG) center no-repeat;
  display: inline-block;
  height: 44px;
  opacity: 0.7;
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
}

.cr-dialog-close:hover {
  background-image: url(chrome://theme/IDR_CLOSE_DIALOG_H);
}

.cr-dialog-close:active {
  background-image: url(chrome://theme/IDR_CLOSE_DIALOG_P);
}
